<?php

namespace App\Http\Controllers\Api\V1\Resources;

use App\Models\BuyerNotice;
use Illuminate\Http\Resources\Json\JsonResource;

class GoldRoundResource extends JsonResource
{
    public function toArray($request)
    {
    	$resource = $this->resource;
    	
        $data = [
        	'id' => $resource->id,
	        'title' => $resource->title,
	        'now' => (string)now(),
	        'today_opened_at' => (string)$resource->today_opened_at,
	        'today_started_at' => (string)$resource->today_started_at,
	        'today_ended_at' => (string)$resource->today_ended_at,
	        'tomorrow_opened_at' => (string)$resource->tomorrow_opened_at,
	        'tomorrow_started_at' => (string)$resource->tomorrow_started_at,
	        'tomorrow_ended_at' => (string)$resource->tomorrow_ended_at,
        ];
        
        return $data;
    }
}
